﻿//
// Created by Administrator on 2020/9/17.
//

#include <iostream>
#include <fstream>
#include <string>

int main() {

    using namespace std;
    std::cout << "start:" << std::endl;

    ifstream fin;

    fin.open("C:\\Code\\example-cpp\\ch16\\strfile.cpp");

    std::cout << fin.is_open() << std::endl;

    string content;
    getline(fin, content);

    cout << content << endl;

}